home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVREC / IRCTIF.C < prev    next >
C/C++ Source or Header  |  1994-09-10  |  15KB  |  649 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    tifDialogId[5] ;
  9. extern int    tifListMenuId0 ;
  10. extern int    tifListFunc0() ;
  11. extern int    tifScrollBarId0 ;
  12. extern int    tifScrollFunc0() ;
  13. extern int    tifMesId[16] ;
  14. extern int    tifTIconId[2] ;
  15. extern int    tifTIconFunc0() ;
  16. extern int    tifDButtonId[9] ;
  17. extern int    tifDButtonFunc0() ;
  18. extern int    tifDButtonFunc1() ;
  19. extern int    tifListMenuId1 ;
  20. extern int    tifListFunc1() ;
  21. extern int    tifDButtonFunc5() ;
  22. extern int    tifDButtonFunc3() ;
  23. extern int    tifDButtonFunc4() ;
  24. extern int    tifDButtonFunc6() ;
  25. extern int    tifDButtonFunc2() ;
  26. extern int    tifNumBoxId ;
  27. extern int    tifScrollBarId1 ;
  28. extern int    tifScrollFunc1() ;
  29. extern int    tifDButtonFunc7() ;
  30. extern int    tifWaitDialogId ;
  31.  
  32. #define ALIGN    4
  33. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  34.  
  35. /*    MMI_init ùpâfü[â^    */
  36.  
  37. /*    âwâbâ_    */
  38.  
  39. MMIINIT    initDataIRCTIF = { "MmiInit",  38, 0 } ;
  40.  
  41. /* tifDialogId[0] */
  42.  
  43. static MMIPACKET d001 = {    &tifDialogId[0],
  44.                             NULL,
  45.                             &MJ_DIALOGL40,
  46.                             OFFSET(DIALOGL40),
  47.                             MS_NONE
  48.                         } ;
  49. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  50.                               22,  43, 619, 457,15, 4, 8,
  51.                             MS_UFRAMEL40 | MS_FRAMEL40,
  52.                             NULL,   0,   0
  53.                         } ;
  54.  
  55. /* tifDialogId[1] */
  56.  
  57. static MMIPACKET d002 = {    &tifDialogId[1],
  58.                             &tifDialogId[0],
  59.                             &MJ_DIALOGL40,
  60.                             OFFSET(DIALOGL40),
  61.                             MS_NONE
  62.                         } ;
  63. static DIALOGL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  64.                               44,  59, 299, 418,15, 4, 8,
  65.                             MS_DFRAMEL40 | MS_FRAMEL40,
  66.                             NULL,   0,   0
  67.                         } ;
  68.  
  69. /* tifListMenuId0 */
  70.  
  71. static MMIPACKET d003 = {    &tifListMenuId0,
  72.                             &tifDialogId[1],
  73.                             &MJ_LMENUL40,
  74.                             OFFSET(LMENUL40),
  75.                             MS_NONE
  76.                         } ;
  77. static LMENUL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  78.                               61,  70, 144, 405, 8,15, 8,
  79.                             MS_FRAMEL40,
  80.                             tifListFunc0,
  81.                                1,  12,  12,
  82.                             MS_NONEL40,
  83.                                0,   0,
  84.                             0,0,0,0,0,0
  85.                         } ;
  86.  
  87. /* tifScrollBarId0 */
  88.  
  89. static MMIPACKET d004 = {    &tifScrollBarId0,
  90.                             &tifDialogId[1],
  91.                             &MJ_SCRLL40,
  92.                             OFFSET(SCRLL40),
  93.                             MS_NONE
  94.                         } ;
  95. static SCRLL40    d004d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
  96.                              145,  70, 160, 405, 8, 6, 7,
  97.                             MS_PANELL40 | MS_FRAMEL40,
  98.                             tifScrollFunc0,
  99.                                0,   0, 255,  16,  16,
  100.                              263, 264
  101.                         } ;
  102.  
  103. /* tifMesId[10] */
  104.  
  105. static MMIPACKET d005 = {    &tifMesId[10],
  106.                             &tifDialogId[1],
  107.                             &MJ_MSGL40,
  108.                             OFFSET(MSGL40),
  109.                             MS_NONE
  110.                         } ;
  111. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  112.                              170,  68, 294,  91, 8,15, 8,
  113.                             MS_NONEL40,
  114.                             "î┤ëµâfâBâîâNâgâè",
  115.                                1,  12,  12,
  116.                             MS_BOLDL40,
  117.                                0,   0
  118.                         } ;
  119.  
  120. /* tifDialogId[4] */
  121.  
  122. static MMIPACKET d006 = {    &tifDialogId[4],
  123.                             &tifDialogId[1],
  124.                             &MJ_DIALOGL40,
  125.                             OFFSET(DIALOGL40),
  126.                             MS_NONE
  127.                         } ;
  128. static DIALOGL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  129.                              178,  95, 281, 405,15, 4, 8,
  130.                             MS_DFRAMEL40 | MS_FRAMEL40,
  131.                             NULL,   0,   0
  132.                         } ;
  133.  
  134. /* tifTIconId[0] */
  135.  
  136. static MMIPACKET d007 = {    &tifTIconId[0],
  137.                             &tifDialogId[4],
  138.                             &MJ_TICONL40,
  139.                             OFFSET(TICONL40),
  140.                             MS_NONE
  141.                         } ;
  142. static TICONL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  143.                              184, 261, 275, 278, 8, 4, 8,
  144.                             MS_NONEL40,
  145.                             tifTIconFunc0,
  146.                             0x0000, 259, 260
  147.                         } ;
  148.  
  149. /* tifMesId[11] */
  150.  
  151. static MMIPACKET d008 = {    &tifMesId[11],
  152.                             &tifDialogId[4],
  153.                             &MJ_MSGL40,
  154.                             OFFSET(MSGL40),
  155.                             MS_NONE
  156.                         } ;
  157. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  158.                              196, 261, 275, 280, 8,15, 8,
  159.                             MS_NONEL40,
  160.                             "êΩé┬é╕é┬ôoÿ^",
  161.                                1,  12,  12,
  162.                             MS_NONEL40,
  163.                                0,   0
  164.                         } ;
  165.  
  166. /* tifTIconId[1] */
  167.  
  168. static MMIPACKET d009 = {    &tifTIconId[1],
  169.                             &tifDialogId[4],
  170.                             &MJ_TICONL40,
  171.                             OFFSET(TICONL40),
  172.                             MS_NONE
  173.                         } ;
  174. static TICONL40    d009d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  175.                              184, 288, 275, 305, 8, 4, 8,
  176.                             MS_NONEL40,
  177.                             tifTIconFunc0,
  178.                             0x0000, 259, 260
  179.                         } ;
  180.  
  181. /* tifMesId[12] */
  182.  
  183. static MMIPACKET d010 = {    &tifMesId[12],
  184.                             &tifDialogId[4],
  185.                             &MJ_MSGL40,
  186.                             OFFSET(MSGL40),
  187.                             MS_NONE
  188.                         } ;
  189. static MSGL40    d010d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  190.                              201, 287, 258, 306, 8,15, 8,
  191.                             MS_NONEL40,
  192.                             "êΩèçôoÿ^",
  193.                                1,  12,  12,
  194.                             MS_NONEL40,
  195.                                0,   0
  196.                         } ;
  197.  
  198. /* tifDButtonId[0] */
  199.  
  200. static MMIPACKET d011 = {    &tifDButtonId[0],
  201.                             &tifDialogId[4],
  202.                             &MJ_DBUTTONL40,
  203.                             OFFSET(DBUTTONL40),
  204.                             MS_NONE
  205.                         } ;
  206. static DBUTTONL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  207.                              190, 310, 269, 335,12, 4, 8,
  208.                             MS_PANELL40 | MS_FRAMEL40,
  209.                             tifDButtonFunc0,
  210.                             0x0000
  211.                         } ;
  212.  
  213. /* tifMesId[0] */
  214.  
  215. static MMIPACKET d012 = {    &tifMesId[0],
  216.                             &tifDialogId[4],
  217.                             &MJ_MSGL40,
  218.                             OFFSET(MSGL40),
  219.                             MS_NONE
  220.                         } ;
  221. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  222.                              201, 313, 258, 332, 8,15, 8,
  223.                             MS_NONEL40,
  224.                             "êΩèçôoÿ^",
  225.                                1,  12,  12,
  226.                             MS_NONEL40,
  227.                                0,   0
  228.                         } ;
  229.  
  230. /* tifDButtonId[1] */
  231.  
  232. static MMIPACKET d013 = {    &tifDButtonId[1],
  233.                             &tifDialogId[4],
  234.                             &MJ_DBUTTONL40,
  235.                             OFFSET(DBUTTONL40),
  236.                             MS_NONE
  237.                         } ;
  238. static DBUTTONL40    d013d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  239.                              190, 367, 269, 392,12, 4, 8,
  240.                             MS_PANELL40 | MS_FRAMEL40,
  241.                             tifDButtonFunc1,
  242.                             0x0000
  243.                         } ;
  244.  
  245. /* tifMesId[1] */
  246.  
  247. static MMIPACKET d014 = {    &tifMesId[1],
  248.                             &tifDialogId[4],
  249.                             &MJ_MSGL40,
  250.                             OFFSET(MSGL40),
  251.                             MS_NONE
  252.                         } ;
  253. static MSGL40    d014d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  254.                              201, 370, 258, 389, 8,15, 8,
  255.                             MS_NONEL40,
  256.                             "æS ôo ÿ^",
  257.                                1,  12,  12,
  258.                             MS_NONEL40,
  259.                                0,   0
  260.                         } ;
  261.  
  262. /* tifDialogId[2] */
  263.  
  264. static MMIPACKET d015 = {    &tifDialogId[2],
  265.                             &tifDialogId[0],
  266.                             &MJ_DIALOGL40,
  267.                             OFFSET(DIALOGL40),
  268.                             MS_NONE
  269.                         } ;
  270. static DIALOGL40    d015d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  271.                              342,  59, 597, 418,15, 4, 8,
  272.                             MS_DFRAMEL40 | MS_FRAMEL40,
  273.                             NULL,   0,   0
  274.                         } ;
  275.  
  276. /* tifListMenuId1 */
  277.  
  278. static MMIPACKET d016 = {    &tifListMenuId1,
  279.                             &tifDialogId[2],
  280.                             &MJ_LMENUL40,
  281.                             OFFSET(LMENUL40),
  282.                             MS_NONE
  283.                         } ;
  284. static LMENUL40    d016d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  285.                              359,  70, 442, 405, 8,15, 8,
  286.                             MS_FRAMEL40,
  287.                             tifListFunc1,
  288.                                1,  12,  12,
  289.                             MS_NONEL40,
  290.                                0,   0,
  291.                             0,0,0,0,0,0
  292.                         } ;
  293.  
  294. /* tifMesId[13] */
  295.  
  296. static MMIPACKET d017 = {    &tifMesId[13],
  297.                             &tifDialogId[2],
  298.                             &MJ_MSGL40,
  299.                             OFFSET(MSGL40),
  300.                             MS_NONE
  301.                         } ;
  302. static MSGL40    d017d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  303.                              467,  70, 594,  89, 8,15, 8,
  304.                             MS_NONEL40,
  305.                             "î┤ëµôoÿ^âpâlâï",
  306.                                1,  12,  12,
  307.                             MS_BOLDL40,
  308.                                0,   0
  309.                         } ;
  310.  
  311. /* tifDialogId[3] */
  312.  
  313. static MMIPACKET d018 = {    &tifDialogId[3],
  314.                             &tifDialogId[2],
  315.                             &MJ_DIALOGL40,
  316.                             OFFSET(DIALOGL40),
  317.                             MS_NONE
  318.                         } ;
  319. static DIALOGL40    d018d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  320.                              476,  95, 579, 405,15, 4, 8,
  321.                             MS_DFRAMEL40 | MS_FRAMEL40,
  322.                             NULL,   0,   0
  323.                         } ;
  324.  
  325. /* tifDButtonId[5] */
  326.  
  327. static MMIPACKET d019 = {    &tifDButtonId[5],
  328.                             &tifDialogId[3],
  329.                             &MJ_DBUTTONL40,
  330.                             OFFSET(DBUTTONL40),
  331.                             MS_NONE
  332.                         } ;
  333. static DBUTTONL40    d019d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  334.                              488, 310, 567, 335,12, 4, 8,
  335.                             MS_PANELL40 | MS_FRAMEL40,
  336.                             tifDButtonFunc5,
  337.                             0x0000
  338.                         } ;
  339.  
  340. /* tifMesId[5] */
  341.  
  342. static MMIPACKET d020 = {    &tifMesId[5],
  343.                             &tifDialogId[3],
  344.                             &MJ_MSGL40,